#ifndef ADDDIALOG_H
#define ADDDIALOG_H

#include <ui_adddlg.h>
#include <QDialog>

/**
	@author Stefan Weigert <stefan.weigert@mailbox.tu-dresden.de>
*/
class AddDialog : public QDialog, private Ui::AddDialog
{
		Q_OBJECT
	public:
		/**
		 * Constructs an AddDialog.
		* 
		 * @param lifeList 
		 * @param parent 
		 */
		AddDialog ( QStringList lifeList, QWidget *parent = 0 );

		int getNumber();

		QString getLife();

		QColor getColor();

	private slots:
		void setColor();
		void updateColor(QListWidgetItem* currentItem);

	private:
		QColor color;
};

#endif
